package org.tln.db137.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tln.db137.entity.Menu;
import org.tln.db137.entity.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户id返回用户的菜单集合
     *
     * @param userid
     * @return
     */
    List<Menu> selectUserMenuByUserID(@Param("userid") int userid);
}